package com.fsnbigdata.service.api;
import com.fsnbigdata.domain.ListQuadrat;
import org.springframework.roo.addon.layers.service.annotations.RooService;
import com.fsnbigdata.domain.ListQuadratItem;
import com.fsnbigdata.domain.Vegetation;
import io.springlets.data.domain.GlobalSearch;
import io.springlets.format.EntityResolver;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * = ListQuadratService
 *
 * TODO Auto-generated class documentation
 *
 */
@RooService(entity = ListQuadrat.class)
public interface ListQuadratService extends EntityResolver<ListQuadrat, Long> {

    /**
     * TODO Auto-generated method documentation
     *
     * @param id
     * @return ListQuadrat
     */
    public abstract ListQuadrat findOne(Long id);

    /**
     * TODO Auto-generated method documentation
     *
     * @param entity
     * @return ListQuadrat
     */
    public abstract ListQuadrat save(ListQuadrat entity);

    /**
     * TODO Auto-generated method documentation
     *
     * @param id
     * @return ListQuadrat
     */
    public abstract ListQuadrat findOneForUpdate(Long id);

    /**
     * TODO Auto-generated method documentation
     *
     * @param ids
     * @return List
     */
    public abstract List<ListQuadrat> findAll(Iterable<Long> ids);

    /**
     * TODO Auto-generated method documentation
     *
     * @param listQuadrat
     * @param itemsToAdd
     * @return ListQuadrat
     */
    public abstract ListQuadrat addToItems(ListQuadrat listQuadrat, Iterable<ListQuadratItem> itemsToAdd);

    /**
     * TODO Auto-generated method documentation
     *
     * @param listQuadrat
     * @param itemsToRemove
     * @return ListQuadrat
     */
    public abstract ListQuadrat removeFromItems(ListQuadrat listQuadrat, Iterable<Long> itemsToRemove);

    /**
     * TODO Auto-generated method documentation
     *
     * @param vegetation
     * @param globalSearch
     * @param pageable
     * @return Page
     */
    public abstract Page<ListQuadrat> findByVegetation(Vegetation vegetation, GlobalSearch globalSearch, Pageable pageable);

    /**
     * TODO Auto-generated method documentation
     *
     * @param vegetation
     * @return Long
     */
    public abstract long countByVegetation(Vegetation vegetation);
}
